<?php 
if(!isset($_SESSION)) 
{ 
session_start(); 
} 
//if (!isset($_SESSION['MyListCameras'])) {
	//$_SESSION['MyListCameras'] = array();
//}
    $m_fromdate = $_REQUEST['datepickerfrom'];
	$l_from = "";
	if ($_REQUEST['s_hourfrom'] != "" && is_int((int)$_REQUEST['s_hourfrom'])){
		$l_from = $_REQUEST['s_hourfrom'];
	}else{
		$l_from = "00";
	}
	if ($_REQUEST['s_munitefrom'] != "" && is_int((int)$_REQUEST['s_munitefrom'])){
		$l_from .= ":".$_REQUEST['s_munitefrom'];	
	}else{
		$l_from .= ":00";
	}
	if ($_REQUEST['s_secondfrom'] != "" && is_int((int)$_REQUEST['s_secondfrom'])){
		$l_from .= ":".$_REQUEST['s_secondfrom'];	
	}else{
		$l_from .= ":00";
	}
	$m_todate = $_REQUEST['datepickerto'];
	$l_to = "";
	if ($_REQUEST['s_hourto'] != "" && is_int((int)$_REQUEST['s_hourto'])){
		$l_to = $_REQUEST['s_hourto'];
	}else{
		$l_to = "00";
	}
	if ($_REQUEST['s_muniteto'] != "" && is_int((int)$_REQUEST['s_muniteto'])){
		$l_to .= ":".$_REQUEST['s_muniteto'];	
	}else{
		$l_to .= ":00";
	}
	if ($_REQUEST['s_secondto'] != "" && is_int((int)$_REQUEST['s_secondto'])){
		$l_to .= ":".$_REQUEST['s_secondto'];	
	}else{
		$l_to .= ":00";
	}
	$fromdate = $m_fromdate." ".$l_from;
	$todate = $m_todate." ".$l_to;
	
	$isReg = $_REQUEST['s_reg'];
	$CarType = $_REQUEST['s_cartype'];
	$carnumber = $_REQUEST['s_carnum'];
	$checkcamera = 0;
	$camera = $_REQUEST['s_mode'];
	echo $fromdate;
	echo $todate;
	echo $isReg;
	echo $CarType;
	echo $carnumber;
	echo $camera;
	
	foreach($_REQUEST['checkCamera'] as $key => $value){
		echo $key;
	}
	
?>

